2-Period RSI strategy (with filter)2-period RSI strategy backtest described in several books of the trader Larry Connors . This strategy uses a 2 periods RSI , one slow arithmetic moving average and one fast arithmetic moving average.
Entry signal:
- RSI 2 value below oversold level (Larry Connors usually sets oversold to be below 5, but other authors prefer to work below 10 due to the higher number of signals).
- Closing above the slow average (200 periods).
- Entry at closing of candle or opening of next candle.
Exit signal:
- Occurs when the candlestick closes above the fast average (the most common fast average is 5 periods, but some traders also suggest the 10 period average).
Entry Filter (modification made by me):
- Applied an RSI2 arithmetic moving average to smooth out oscillations.
- Entered only when RSI2 is below oversold level and RSI2 moving average is below 30.
* NOTE: In the stocks that I evaluate daily the averages of 4 and 6 periods work very well as a filter.
Comments:
This strategy works very well in Daily charts but can be applied in other chart times as well. As this is a strategy to catch market fluctuations, it presents different results with different stocks.
I have been applying this strategy to the stocks of the Brazilian market (BOVESPA) and have enjoyed the result. Every day I evaluate the stocks that are generating entry signals and choose which one to trade based on the stocks with the highest Profit Value.
The RSI 2 averaging filter probably will reduce profit of the backtests because reduces the number of signals, but the Profit Value will usually increase. For me this was a good thing because without the filter, this strategy usually shows more signals than I have capital to allocate.
Before entering a trade I look at which fast average the paper has the highest Profit Value and then I use this average as my output signal for that trade (this change has greatly improved the result of the outputs).
This strategy does not use Stop Loss because normally Stop Loss decreases effectiveness (profit). In any case, the option to apply a percentage Stop Loss if desired is added in the script. As the strategy does not use stop, extra caution with risk management is advisable. I advise not to allocate more than 20% of the trade capital in the same operation.
I'm still studying ways to improve this strategy, but so far this is the best setup I've found. Suggestions are always welcome and we can test to see if they improve the backtest result.
Good luck and good trades.
================================================
Backtest das estratรฉgia do IFR de 2 perรญodos descrita em varios livros do trader Larry Connors . Esta estratรฉgia usa um IFR de 2 perรญodos, uma mรฉdia movel aritmรฉtica lenta e uma mรฉdia movel aritmรฉtica rรกpida.
Sinal de entrada:
- Valor do IFR 2 abaixo do nรญvel de sobrevenda (Larry Connors usualmente define sobrevenda sendo abaixo de 5, mas outros autores preferem trabalhar abaixo de 10 devido ao maior nรบmero de sinais).
- Fechamento acima da mรฉdia lenta (200 perรญodos).
- Realizado a compra no fechamento do candle ou na abertura do candle seguinte.
Sinal de saรญda:
- Ocorre quando o candle fecha acima da mรฉdia rรกpida (a mรฉdia rรกpida mais comum รฉ a de 5 perรญodos, mas alguns traders sugerem tambรฉm a mรฉdia de 10 perรญodos).
Filtro para entrada (modificaรงรฃo feita por mim):
- Aplicado uma mรฉdia mรณvel aritmรฉtica do IFR2 para suavisar as oscilaรงรตes.
- Realizado a entrada apenas quando o IFR2 estรก abaixo do nรญvel de sobrevenda e a mรฉdia mรณvel do IFR2 estรก abaixo de 30.
*OBS: nos ativos que avalio diariamente as mรฉdias de 4 e 6 perรญodos funcionam muito bem como filtro.
Comentรกrios:
Esta estratรฉgia funciona muito bem no tempo grรกfico Diรกrio mas pode ser aplicada tambem em outros tempos grรกficos. Como trata-se de uma estratรฉgia para pegar oscilaรงรตes do mercado, ela apresenta diferentes resultados com diferentes ativos.
Eu venho aplicando esta estratรฉgia nos ativos do mercado brasileiro (BOVESPA) e tenho gostado do resultado. Diariamente eu avalio os papeis que estรฃo gerando entrada e escolho qual irei realizar o trade baseado nos papeis que apresentam maior Profit Value.
O filtro da mรฉdia do IFR 2 reduz o lucro nos backtests pois reduz tambรฉm a quantidade de sinais, mas em compensaรงรฃo o Profit Value irรก normalmente aumentar. Para mim isto foi algo positivo pois, sem o filtro, normalmente esta estratรฉgia apresenta mais sinais do que possuo capital para alocar.
Antes de entrar em um trade eu olho em qual mรฉdia rรกpida o papel apresenta maior Profit Value e entรฃo eu utilizo estรก mรฉdia como meu sinal de saรญda para aquele trade (esta mudanรงa tem melhorado bastante o resultado das saรญdas).
Estรก estratรฉgia nรฃo utiliza Stop Loss pois normalmente o Stop Loss diminui a eficรกcia (lucro). De qualquer maneira, foi acrescentado no script a opรงรฃo de aplicar um Stop Loss percentual caso seja desejado. Como a estratรฉgia nรฃo utiliza stop รฉ aconselhรกvel um cuidado redobrado com o gerenciamento de risco. Eu aconselho nรฃo alocar mais de 20% do capital de trade em uma mesma operaรงรฃo.
Ainda estou estudando formas de melhorar esta estratรฉgia, mas atรฉ o momento estรก รฉ a melhor configuraรงรฃo que encontrei. Sugestรตes sรฃo sempre bem vindas e podemos testar para verificar se melhoram o resultado do backtest.
Boa sorte e bons trades.
Cari dalam skrip untuk "stop loss"
Cyatophilum Bands Pro Trader V3 [BACKTEST]An Original Automated Strategy that can be used for Manual or Bot Trading, on any timeframe and market.
>> Presentation <<
How it works
No, these are NOT Bollinger Bands..
The Cyatophilum Bands are an original formula that I created. You will probably never find it anywhere else.
Their behavior is the following:
When they are horizontal it means the trend is going sideways and they represent supports (lower band) and resistances (upper band).
When they are climbing or falling it means the trend is either bullish or bearish and they represent Trend Lines.
The strategy enters Long on a Bull Breakout and enters Short on a Bear Breakout.
The exits are triggered either on a Trend Reversal, a Stop Loss or a Take Profit.
FEATURES
Take Profit System
Stop Loss System
Show Net profit Line
More features here
Finding a profitable configuration is GUARANTEED
0. Choose your symbol and timeframe. Then add the Backtest version to your chart. If at any time you decide to change your timeframe, go back to step 1.
1. Open the strategy tester and look at the buy & hold line.
If it is mostly climbing (last value greater than 0) then it means we are in a bull market. You should then opt or a long only strategy.
If it is mostly dropping (last value lower than 0) then it means we are in a bear market. You should then opt or a short only strategy.
Note : This first step is really important. Trading against the market has very little chances to succeed.
2. Go into the Strategy Input Parameters:
check "Enable Long Results" and uncheck "Enable Short Results" if you are in a long only strategy.
check "Enable Short Results" and uncheck "Enable Long Results" if you are in a short only strategy.
3. Open the Strategy Tester and open the Strategy Properties.
We are going to find the base parameters for the Bands.
The "Bands Lookback" is the main parameter to configure for any strategy. It corresponds to how strong of a support and resistance the bands will behave. The lower the timeframe, the higher lookback you will need. It can move from 10 to 60. For example 60 is a good value for a 3 minute timeframe. Try different values, and look at the "net profit" value in the Overview tab of the Strategy Tester. Keep the Lookback value that shows the best net profit value.
Then play with the "Bands Smoothing" from 2 to 20 and keep the best net profit value.
The "Band Smoothing" is used to reduce noise.
Usually, the default value (10) is what gives the best results.
From this point you should already be able to have a profitable strategy (net profit>0), but we can improve it using the Stop Loss and the Take Profit feature.
4. To activate the Stop Loss feature, click on the "SECURITY" checkbox
You should see horizontal red lines appear.
A Long/short exit alert will be triggered if the price were to cross this line. (A red Xcross will appear)
Choose the Stop Loss percentage.
On top of that, you can enable the feature "Trailing Stop". It will make the red line follow the price, at a speed that you can configure with the "Trailing Speed" parameter.
Now, sometimes a stop is triggered and it was just a fakeout. You can enable "Re-entries after a stop" to avoid missing additional opportunities.
5. To activate the Take Profit feature, click on the "TAKE PROFIT" checkbox
You should see horizontal green lines appear.
A Long/short exit alert will be triggered if the price were to cross this line. (A flag will appear)
Choose the Take Profit percentage.
A low takeprofit will provide a safer strategy but can reduce potential profits.
A higher takeprofit will increase risk but can provide higher potential profits.
6. Money Management
You can configure the backtest according to your own money management.
Let's say you have 10 000 $ as initial capital and want to trade only 5%, set the Order Size to 5% of Equity.
You can increase net profit by increasing the order size but this is at your own risk.
How to create alerts explained here
Sample Uses Cases
Use it literally anywhere
This indicator can be used on any timeframe and market (not only cryptocurrencies).
About the Backtest below
The Net Profit (Gross profit - Gross loss) is calculated with a commission of 0.05% on each order.
No leverage used. This is a long strategy.
Each trade is made with 10 % of equity from an inital capital of 10 000$. The net profit can be bigger by increasing the % of equity but this a trader's rule to minimise the risk.
I am selling access to all my indicators on my website : blockchainfiesta.com
To get a 2 days free trial, just leave a comment , thanks !
Join my Discord for help, configurations, requests, etc. discord.gg
Trend Follower Strategy (Long Only)Adjusted for Bitcoin.
Long position only.
10% of your balance each time.
Tight stop loss.
Reasonable profit-loss ratio.
Positive return every year.
No repaint.
Hophop Strategy DemoThis is the demo of hophop strategy that can only be executed for the pairs and timeframes listed below
"BTCUSD"
"XBTUSD"
"ETHUSD"
"ETHBTC"
"ETHXBT"
"XRPUSD"
"XRPBTC"
"XRPXBT"
"10"
"30"
"45"
"60"
"120"
"240"
I have added dynamic trailing stop loss that can be used as a stop loss when trade is not in profit alternatively you can use it as a take profit points if you don't want to close the trade aggressively
For those who hasnt worked with strategy before
Blue arrow : Long
Red arrow: Short
Purple arrow: Close active trade
if strategy is on a long trade and active trade is in profit, you can use the red line as stop loss or take profit
if strategy is on a long trade and active trade is in loss, you can use the red line as stop loss if active trade hasn't closed already
if strategy is on a short trade and active trade is in profit, you can use the green line as stop loss or take profit
if strategy is on a short trade and active trade is in loss, you can use the green line as stop loss if active trade hasn't closed already
In full version active stop loss/take profit is embedded to strategy and they are configurable according to your risk appetite
Strategy results are for the dates between 01.01.2018 - 01.10.2018 . ( which includes volatile bear market and choppy sideways market )
ETHUSD - Bitfinex - 5 minutes - fastThe same principle of the other ETHUSD script for autoview, with more generic signals.
Safety is because of the Stop Loss (with editable values) that turns the hand in the operation.
There are more operations, however, as you can see, losses can increase.
For those who do not have the patience to wait for the signs of the other.
Backtest properties
. Initial: 10k usd
. Currency: USD
. Pyramiding: 0
. Order Size: 100% equity
. Comission: 0.25%
>>>>>>>>>>>>>>>>>>> ADVICE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
This script was created on the BitFINEX chart in 5 minutes.
It is not recommended for use in another pair, another exchange or another timeframe.
[Autoview][BackTest]Dual MA Ribbons R0.12 by JustUncleLThis is an implementation of a strategy based on two MA Ribbons, a Fast Ribbon and a Slow Ribbon. This strategy can be used on Normal candlestick charts or Renko charts (if you are familiar with them).
The strategy revolves around a pair of scripts: One to generate alerts signals for Autoview and one for Backtesting, to tune your settings.
The risk management options are performed within the script to set SL(StopLoss), TP(TargetProfit), TSL(Trailing Stop Loss) and TTP (Trailing Target Profit). The only requirement for Autoview is to Buy and Sell as directed by this script, no complicated syntax is required.
The Dual Ribbons are designed to capture the inferred behavior of traders and investors by using two groups of averages:
> Traders MA Ribbon: Lower MA and Upper MA (Aqua=Uptrend, Blue=downtrend, Gray=Neutral), with center line Avg MA (Orange dotted line).
> Investors MAs Ribbon: Lower MA and Upper MA (Green=Uptrend, Red=downtrend, Gray=Neutral), with center line Avg MA (Fuchsia dotted line).
> Anchor time frame (0=current). This is the time frame that the MAs are calculated for. This way 60m MA Ribbons can be viewed on a 15 min chart to establish tighter Stop Loss conditions.
Trade Management options:
Option to specify Backtest start and end time.
Trailing Stop, with Activate Level (as % of price) and Trailing Stop (as % of price)
Target Profit Level, (as % of price)
Stop Loss Level, (as % of price)
BUY green triangles and SELL dark red triangles
Trade Order closed colour coded Label:
>> Dark Red = Stop Loss Hit
>> Green = Target Profit Hit
>> Purple = Trailing Stop Hit
>> Orange = Opposite (Sell) Order Close
Trade Management Indication:
Trailing Stop Activate Price = Blue dotted line
Trailing Stop Price = Fuschia solid stepping line
Target Profit Price = Lime '+' line
Stop Loss Price = Red '+' line
Dealing With Renko Charts:
If you choose to use Renko charts, make sure you have enabled the "IS This a RENKO Chart" option, (I have not so far found a way to Detect the type of chart that is running).
If you want non-repainting Renko charts you MUST use TRADITIONAL Renko Bricks. This type of brick is fixed and will not change size.
Also use Renko bricks with WICKS DISABLED. Wicks are not part of Renko, the whole idea of using Renko bricks is not to see the wick noise.
Set you chart Time Frame to the lowest possible one that will build enough bricks to give a reasonable history, start at 1min TimeFrame. Renko bricks are not dependent on time, they represent a movement in price. But the chart candlestick data is used to create the bricks, so lower TF gives more accurate Brick creation.
You want to size your bricks to 2/1000 of the pair price, so for ETHBTC the price is say 0.0805 then your Renko Brick size should be about 2*0.0805/1000 = 0.0002 (round up).
You may find there is some slippage in value, but this can be accounted for in the Backtest by setting your commission a bit higher, for Binance for example I use 0.2%
Special thanks goes to @CryptoRox for providing the initial Risk management Framework in his "How to automate this strategy for free using a chrome extension" example.
HL MovingAvg2Line Cross Dhananjay
Sharing the simple trend following trading strategy, traders can add their own rules in this, to minimise the losses and maximise the profits. Like below.
1. Go long only if price is above 189 days EMA/SAM
2. Exit position when high or low of previous candle is breached in the opposite direction of the trend.
3. Go long only if price is in up trend on higher time frame charts and go short when price is down trend of higher time frame charts.
Stop loss, target and other things can also be decided by the trader.
Idea is to capture the short term trend to trade in FnO or 2/3 days position in underlying instrument.
Traders can optimise the length of the Moving average so that your traded is set for maximum profit giving settings for this strategy. Different instruments responds to different moving averages because of different volatility.
Idea is to go long when price closes above 9 days EMA of Highs and exit and go short whenever price closes below 9 days EMA of lows, exit short when first condition meets after short trade.
I ma not that good with scripts, have many such ideas, interested script writers can get in touch with me so that we can create trading systems which have grater success rate .
8ma34 EURUSD 1h 480tp 950slCrossing 8 sma and 34 sma on the 1h chart (close) of EURUSD.
If sma (8) crossing up sma (34) then open a long on closed bar with +480 pips for the take profit and -950 pips for the stop loss.
If sma (8) crossing down sma (34) then open a short on closed bar with -480 pips for the take profit and +950 pips for the stop loss.
Golden Cross, SMA 200 Moving Average Strategy (by ChartArt)This famous moving average strategy is very easy to follow to decide when to buy (go long) and when to take profit.
The strategy goes long when the faster SMA 50 (the simple moving average of the last 50 bars) crosses above the slower SMA 200. Orders are closed when the SMA 50 crosses below the SMA 200. This simple strategy does not have any other stop loss or take profit money management logic. The strategy does not short and goes long only!
Here is an article explaining the "golden cross" strategy in more detail:
www.stockopedia.com
On the S&P 500 index (symbol "SPX") this strategy worked on the daily chart 81% since price data is available since 1982. And on the DOW Jones Industrial Average (symbol "DOWI") this strategy worked on the daily chart 55% since price data is available since 1916. The low number of trades is in both cases not statistically significant though.
All trading involves high risk; past performance is not necessarily indicative of future results. Hypothetical or simulated performance results have certain inherent limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not actually been executed, the results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown.
Daily Close Comparison Strategy (by ChartArt via sirolf2009)Comparing daily close prices as a strategy.
This strategy is equal to the very popular "ANN Strategy" coded by sirolf2009(1) which calculates the percentage difference of the daily close price, but this bar-bone version works completely without his Artificial Neural Network (ANN) part.
Main difference besides stripping out the ANN is that my version uses close prices instead of OHLC4 prices, because they perform better in backtesting. And the default threshold is set to 0 to keep it simple instead of 0.0014 with a larger step value of 0.001 instead of 0.0001. Just like the ANN strategy this strategy goes long if the close of the current day is larger than the close price of the last day. If the inverse logic is true, the strategy goes short (last close larger current close). (2)
This basic strategy does not have any stop loss or take profit money management logic. And I repeat, the credit for the fundamental code idea goes to sirolf2009.
(2) Because the multi-time-frame close of the current day is future data, meaning not available in live-trading (also described as repainting), is the reason why this strategy and the original "ANN Strategy" coded by sirolf2009 perform so excellent in backtesting.
All trading involves high risk; past performance is not necessarily indicative of future results. Hypothetical or simulated performance results have certain inherent limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not actually been executed, the results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown.
(1) You can get the original code by sirolf2009 including the ANN as indicator here:
(1) and this is sirolf2009's very popular strategy version of his ANN:
MACD + Stochastic, Double Strategy (by ChartArt)This strategy combines the classic stochastic strategy to buy when the stochastic is oversold with a classic MACD strategy to buy when the MACD histogram value goes above the zero line. Only difference to the classic stochastic is a default setting of 71 for overbought (classic setting 80) and 29 for oversold (classic setting 20).
Therefore this strategy goes long if the MACD histogram goes above zero and the stochastic indicator detects a oversold condition (value below 29). If the inverse logic is true, the strategy goes short (stochastic overbought condition with a value above 71 and the MACD histogram falling below the zero line value).
Please be aware that this pure double strategy using simply two classic indicators does not have any stop loss or take profit money management logic.
All trading involves high risk; past performance is not necessarily indicative of future results. Hypothetical or simulated performance results have certain inherent limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not actually been executed, the results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown.
Pump-Smart Shorting StrategyThis strategy is designed for actively hedging long token positions by opening and closing short positions in response to market momentum, specifically after strong upward moves ("pumps"). It incorporates momentum detection, cooldown logic, and avoids shorting during periods of high volatility or when a pump is active. The script includes risk management, visual feedback zones for operational states, and a control panel for real-time diagnostics.
How The Strategy Works
1. Pump Detection
The strategy monitors for strong upward moves using:
- RSI (Relative Strength Index): A value โฅ 70 signals strong buying momentum.
- Volume: If current volume exceeds 1.5ร the average, combined with a single-bar price jump > 5%.
- When these pump conditions are met, the strategy blocks shorts and colors the background orange.
2. Pump End and Cooldown
Once pump conditions cease, the strategy enters a cooldown phase:
RSI must drop to โค 60.
Either the price momentum slows or volume returns to near average.
Users can set a waiting period (barsWait) after the pump ends before entering shorts.
3. Short Trade Entry
Shorts are opened only if:
- The pump has ended and cooldown conditions are met (shortAfterPump).
- Or a new high is established and no pump is underway (shortOnPeak).
Visual indicators:
Blue arrow for "short after pump".
Red arrow for "short on a new high".
4. No-Short Zones
A red background flag indicates zones where shorting is blocked:
If pump conditions are active.
If market is still cooling down post-pump.
If the cooldown period (barsWait) hasn't elapsed.
5. Position Management & Risk Controls
The script only opens a short if no short is currently active.
Take Profit (green line): Short closes if price falls ~2% below the short entry.
Stop Loss (red line): Short closes if price rises ~6% above the entry.
If a pump is detected while in a short, the position is closed immediately to mitigate risk.
6. Real-Time Visual Feedback
Shapes Above Bars:
Orange circle: pump start
Teal circle: pump end
Blue triangle: short after pump
Red triangle: short on new high
Overlay Lines:
Blue line: active short entry price
Green line: take profit threshold
Red line: stop loss threshold
Background Colors:
Orange: pump zone (no shorts)
Blue: post-pump entry zone
Red: no-short zone (visual block for restricted shorts)
Info Panel (top right): Shows pump status, cooldown, entry opportunities, and whether shorting is blocked.
Customization Parameters
lookbackPeriod: Bars to look back for new highs
minProfitPerc: Take profit percent on shorts
stopLossPerc: Maximum allowed loss percent before stop out
rsiPeriod, rsiHigh, rsiCool: Momentum detection/cooldown tuning
volMult, pctUp: Volume and price jump sensitivity for pump detection
barsWait: Number of bars to wait post-pump before allowing shorts
hedgeTokens: Short position size per entry
Use Cases
Active Hedging: For users managing large, illiquid spot positions who want to systematically hedge risk after large upward moves.
Momentum-Aware Shorting: Ensures shorts are only entered after euphoria cools, tactics for avoiding squeeze/liquidation risk.
Visual Diagnostics: Clear overlays and color codes for trading zones, signal clarity, and operational feedback.
Strategy Logic Summary
Condition Action Visual Feedback
Pump detected Block shorts, close shorts Orange/red background
Pump ended, cooled Enable shorts Blue background, arrow
New high (no pump) Allow short entry Red arrow
Take profit reached Close short Green line
Stop loss reached Close short Red line
Blocked zone No shorts allowed Red background
This script is robust for market environments with frequent volatility spikes, giving traders a clear, rule-based template for short-side risk management.Documentation: Short After Pump Ends Strategy
Purpose: This Pine Script strategy allows you to hedge long token positions by opening shorts after strong price pumps finish and during market consolidations. It is designed to minimize risk from short squeezes and avoid shorting during active pumps.
Key Features:
Pump Detection:
Uses RSI, volume, and single-bar price jump to detect if the market is in an upward pump.
No short positions are opened during these zones. Red background visually highlights these periods.
Orange background highlights active pump zones.
Cooldown Logic:
Shorts are only opened after the pump has ended and the market has cooled down (RSI โค 60, volume and momentum returned to normal).
You can set how many bars to wait after the pump ends (barsWait) before shorts can be placed again.
Short Entry Triggers:
Short After Pump: When cooldown completes and no short position is active.
Short on New High: If a new high is formed and no pump is active (optional; keep for more frequent entries).
Risk Management:
Take Profit (TP): Short closes if market falls the specified percentage from entry.
Stop Loss (SL): Short closes if market rises the specified percentage.
If a pump is detected while in a short, the short is closed immediately.
Visuals and Feedback:
Shape markers for pump start/end, short entries (arrows) โ without labels for clean visuals.
Colored overlays:
Orange = pump zone (no shorting)
Blue = post-pump short entry zones
Red = no-short zones (blocked periods)
Panel widget displays pump status, cooldown, opportunities, and zone state.
Parameters:
lookbackPeriod: Number of bars for new high detection.
minProfitPerc: Take profit percentage for shorts.
stopLossPerc: Max loss percentage before the short is stopped.
rsiPeriod, rsiHigh, rsiCool: Controls for pump/cooldown detection.
volMult, pctUp: Volume and price jump detection for identifying pumps.
barsWait: Wait time after pump ends before shorts are allowed.
hedgeTokens: Number of tokens to use for each short position.
Logic Summary Table:
Market Condition Action Visual Feedback
Pump detected No shorts/open, close shorts Orange/red overlay
Pump ended and cooled Shorts enabled (entry) Blue overlay, no short zone removed
New high while not pumping Shorts enabled (entry) Red arrow
TP or SL hit Short closed Green/red line overlay
Blocked periods No short allowed Red overlay
Usage:
- Deploy this strategy to minimize drawdown from post-pump reversals.
- Identify and avoid risky periods with clear overlays and marker signals.
- Actively hedge positions only when market is not in a strong upward momentum.
Customizable for:
- More conservative/aggressive pump detection (change RSI/volume/price thresholds).
- Adaptable to different token sizes and market environments (modify hedgeTokens, waiting periods, percent thresholds).
Larry Williams Oops StrategyThis strategy is a modern take on Larry Williamsโ classic Oops setup. It trades intraday while referencing daily bars to detect opening gaps and align entries with the prior dayโs direction. Risk is managed with day-based stops, andโunlike the originalโall positions are closed at the end of the session (or at the last barโs close), not at a fixed profit target or the first profitable open.
Entry Rules
Long setup (bullish reversion): Today opens below yesterdayโs low (down gap) and yesterdayโs candle was bearish. Place a buy stop at yesterdayโs low + Filter (ticks).
Short setup (bearish reversion): Today opens above yesterdayโs high (up gap) and yesterdayโs candle was bullish. Place a sell stop at yesterdayโs high โ Filter (ticks).
Longs are only taken on down-gap days; shorts only on up-gap days.
Protective Stop
If long, stop loss trails the current dayโs low.
If short, stop loss trails the current dayโs high.
Exit Logic
Positions are force-closed at the end of the session (in the last bar), ensuring no overnight exposure. There is no take-profit; only stop loss or end-of-day flat.
Notes
This strategy is designed for intraday charts (minutes/seconds) using daily data for gaps and prior-day direction.
Longs/shorts can be enabled or disabled independently.
Diabolos Long What the strategy tries to do
It looks for RSI dips into oversold, then waits for RSI to recover above a chosen level before placing a limit buy slightly below the current price. If the limit doesnโt fill within a few bars, it cancels it. Once in a trade, it sets a fixed take-profit and stop-loss. It can pyramid up to 3 entries.
Step-by-step
1) Inputs you control
RSI Length (rsiLen), Oversold level (rsiOS), and a re-entry threshold (rsiEntryLevel) you want RSI to reach after oversold.
Entry offset % (entryOffset): how far below the current close to place your limit buy.
Cancel after N bars (cancelAfterBars): if still not filled after this many bars, the limit order is canceled.
Risk & compounding knobs: initialRisk (% of equity for first order), compoundRate (% to artificially grow the equity base after each signal), plus fixed TP% and SL%.
2) RSI logic (arming the setup)
It calculates rsi = ta.rsi(close, rsiLen).
If RSI falls below rsiOS, it sets a flag inOversold := true (this โarmsโ the next potential long).
A long signal (longCondition) happens only when:
inOversold is true (we were oversold),
RSI comes back above rsiOS,
and RSI is at least rsiEntryLevel.
So: dip into OS โ recover above OS and to your threshold โ signal fires.
3) Placing the entry order
When longCondition is true:
It computes a limit price: close * (1 - entryOffset/100) (i.e., below the current barโs close).
It sizes the order as positionRisk / close, where:
positionRisk starts as accountEquity * (initialRisk/100).
accountEquity was set once at script start to strategy.equity.
It places a limit long: strategy.order("Long Entry", strategy.long, qty=..., limit=limitPrice).
It then resets inOversold := false (disarms until RSI goes oversold again).
It remembers the bar index (orderBarIndex := bar_index) so it can cancel later if unfilled.
Important nuance about โcompoundingโ here
After signaling, it does:
compoundedEquity := compoundedEquity * (1 + compoundRate/100)
positionRisk := compoundedEquity * (initialRisk/100)
This means your future order sizes grow by a fixed compound rate every time a signal occurs, regardless of whether previous trades won or lost. Itโs not tied to actual PnL; itโs an artificial growth curve. Also, accountEquity was captured only once at start, so it doesnโt automatically track live equity changes.
4) Auto-cancel the limit if it doesnโt fill
On each bar, if bar_index - orderBarIndex >= cancelAfterBars, it does strategy.cancel("Long Entry") and clears orderBarIndex.
If the order already filled, cancel does nothing (thereโs nothing pending with that id).
Behavioral consequence: Because you set inOversold := false at signal time (not on fill), if a limit order never fills and later gets canceled, the strategy will not fire a new entry until RSI goes below oversold again to re-arm.
5) Managing the open position
If strategy.position_size > 0, it reads the avg entry price, then sets:
takeProfitPrice = avgEntryPrice * (1 + exitGainPercentage/100)
stopLossPrice = avgEntryPrice * (1 - stopLossPercentage/100)
It places a combined exit:
strategy.exit("TP / SL", from_entry="Long Entry", limit=takeProfitPrice, stop=stopLossPrice)
With pyramiding=3, multiple fills can stack into one net long position. Using the same from_entry id ties the TP/SL to that logical entry group (not per-layer). Thatโs OK in TradingView (it will manage TP/SL for the position), but you donโt get per-layer TP/SL.
6) Visuals & alerts
It plots a green triangle under the bar when the long signal condition occurs.
It exposes an alert you can hook to: โะะพะบัะฟะบะฐ ะฟัะธ ะดะพััะธะถะตะฝะธะธ ััะพะฒะฝัโ.
A quick example timeline
RSI drops below rsiOS โ inOversold = true (armed).
RSI rises back above rsiOS and reaches rsiEntryLevel โ signal.
Strategy places a limit buy a bit below current price.
4a) If price dips to fill within cancelAfterBars, youโre long. TP/SL are set as fixed % from avg entry.
4b) If price doesnโt dip enough, after N bars the limit is canceled. The system wonโt re-try until RSI becomes oversold again.
Key quirks to be aware of
Risk sizing isnโt PnL-aware. accountEquity is frozen at start, and compoundedEquity grows on every signal, not on wins. So size doesnโt reflect real equity changes unless you rewrite it to use strategy.equity each time and (optionally) size by stop distance.
Disarm on signal, not on fill. If a limit order goes stale and is canceled, the system wonโt try again unless RSI re-enters oversold. Thatโs intentional but can reduce fills.
Single TP/SL id for pyramiding. Works, but you canโt manage each add-on with different exits.
Order Block Volumatic FVG StrategyInspired by: Volumatic Fair Value Gaps โ
License: CC BY-NC-SA 4.0 (Creative Commons AttributionโNonCommercialโShareAlike).
This script is a non-commercial derivative work that credits the original author and keeps the same license.
What this strategy does
This turns BigBelugaโs visual FVG concept into an entry/exit strategy. It scans bullish and bearish FVG boxes, measures how deep price has mitigated into a box (as a percentage), and opens a long/short when your mitigation threshold and filters are satisfied. Risk is managed with a fixed Stop Loss % and a Trailing Stop that activates only after a user-defined profit trigger.
Additions vs. the original indicator
โ
Strategy entries based on % mitigation into FVGs (long/short).
โ
Lower-TF volume split using upticks/downticks; fallback if LTF data is missing (distributes prior bar volume by closeโs position in its HโL range) to avoid NaN/0.
โ
Per-FVG total volume filter (min/max) so you can skip weak boxes.
โ
Age filter (min bars since the FVG was created) to avoid fresh/immature boxes.
โ
Bull% / Bear% share filter (the 46%/53% numbers you see inside each FVG).
โ
Optional candle confirmation and cooldown between trades.
โ
Risk management: fixed SL % + Trailing Stop with a profit trigger (doesnโt trail until your trigger is reached).
โ
Pine v6 safety: no unsupported args, no indexof/clamp/when, reverse-index deletes, guards against zero/NaN.
How a trade is decided (logic overview)
Detect FVGs (same rules as the original visual logic).
For each FVG currently intersected by the bar, compute:
Mitigation % (how deep price has entered the box).
Bull%/Bear% split (internal volume share).
Total volume (printed on the box) from LTF aggregation or fallback.
Age (bars) since the box was created.
Apply your filters:
Mitigation โฅ Long/Short threshold.
Volume between your min and max (if enabled).
Age โฅ min bars (if enabled).
Bull% / Bear% within your limits (if enabled).
(Optional) the current candle must be in trade direction (confirm).
If multiple FVGs qualify on the same bar, the strategy uses the most recent one.
Enter long/short (no pyramiding).
Exit with:
Fixed Stop Loss %, and
Trailing Stop that only starts after price reaches your profit trigger %.
Input settings (quick guide)
Mitigation source: close or high/low. Use high/low for intrabar touches; close is stricter.
Mitigation % thresholds: minimal mitigation for Long and Short.
TOTAL Volume filter: skip FVGs with too little/too much total volume (per box).
Bull/Bear share filter: require, e.g., Long only if Bull% โฅ 50; avoid Short when Bull% is high (Short Bull% max).
Age filter (bars): e.g., โฅ 20โ30 bars to avoid fresh boxes.
Confirm candle: require candle direction to match the trade.
Cooldown (bars): minimum bars between entries.
Risk:
Stop Loss % (fixed from entry price).
Activate trailing at +% profit (the trigger).
Trailing distance % (the trailing gap once active).
Lower-TF aggregation:
Auto: TF/Divisor โ picks 1/3/5m automatically.
Fixed: choose 1/3/5/15m explicitly.
If LTF canโt be fetched, fallback allocates prior barโs volume by its close position in the barโs HโL.
Suggested starting presets (you should optimize per market)
Mitigation: 60โ80% for both Long/Short.
Bull/Bear share:
Long: Bull% โฅ 50โ70, Bear% โค 100.
Short: Bull% โค 60 (avoid shorting into strong support), Bear% โฅ 0โ70 as you prefer.
Age: โฅ 20โ30 bars.
Volume: pick a min that filters noise for your symbol/timeframe.
Risk: SL 4โ6%, trailing trigger 1โ2%, distance 1โ2% (crypto example).
Set slippage/fees in Strategy Properties.
Notes, limitations & best practices
Data differences: The LTF split uses request.security_lower_tf. If the exchange/data feed has sparse LTF data, the fallback kicks in (itโs deliberate to avoid NaNs but is a heuristic).
Real-time vs backtest: The current bar can update until close; results on historical bars use closed data. Use โBar Replayโ to understand intrabar effects.
No pyramiding: Only one position at a time. Modify pyramiding in the header if you need scaling.
Assets: For spot/crypto, TradingView โvolumeโ is exchange volume; in some markets it may be tick volumeโinterpret filters accordingly.
Risk disclosure: Past performance โ future results. Use appropriate position sizing and risk controls; this is not financial advice.
Credits
Visual FVG concept and original implementation: BigBeluga.
This derivative strategy adds entry/exit logic, volume/age/share filters, robust LTF handling, and risk management while preserving the original spirit.
License remains CC BY-NC-SA 4.0 (non-commercial, attribution required, share-alike).
Quantura - Quantified Price Action StrategyIntroduction
โQuantura โ Quantified Price Action Strategyโ is an invite-only Pine Script strategy designed to combine multiple price action concepts into a single trading framework. It integrates supply and demand zones, liquidity sweeps and runs, fair value gaps (FVGs), RSI filters, and EMA trend confirmation. The strategy also provides a visual overlay with dynamic trend-colored candles for easier chart interpretation. It is intended for multi-market use across cryptocurrencies, Forex, equities, and indices.
Originality & Value
The strategy is original in how it unifies several institutional-style price action elements and validates trades only when they align. This reduces noise compared to using single indicators in isolation. Its unique value lies in the combination of:
Supply & Demand detection: Dynamic boxes identified through pivots, ATR, and volume sensitivity.
Liquidity sweeps and runs: Detects when swing highs/lows are broken and retested, distinguishing between liquidity grabs (sweeps) and directional runs.
RSI filter: Can be set to normal or aggressive, confirming momentum before trades.
Fair Value Gaps (FVGs): Optional detection and filtering of price inefficiencies.
EMA filter: Aligns trades with the broader market trend.
Trend candle visualization: Candles dynamically colored bullish, bearish, or neutral, based on strategy positions.
This layered confluence approach ensures that entries are not taken on a single condition but require agreement across several dimensions of market structure, momentum, and order flow.
Functionality & Indicators
Supply & Demand Zones: Zones are created when pivots, ATR sensitivity, and volume thresholds overlap.
Liquidity: Swing highs and lows are tracked, with options for sweep (fakeout/reversal) or run (continuation) detection.
RSI: Confirms long signals when oversold and shorts when overbought, with configurable aggressiveness.
FVG filter: Adds validation by requiring price interaction with inefficiency zones.
EMA filter: Ensures longs are above EMA and shorts below EMA.
Signals & Visualization: Trade entries are marked on the chart, while candles change color to reflect trade direction and status.
Parameters & Customization
Supply & Demand: Sensitivity (swing range, volume multiplier, ATR multiplier) and display options.
Liquidity filter: Mode (Run or Sweep), display, and swing length.
RSI: Enable/disable, length, and style (normal or aggressive).
Fair Value Gaps: Sensitivity via ATR factor, optional volume filter, and display toggles.
EMA: Length, enable/disable, and visualization.
Risk management: Up to three configurable take-profit levels, stop-loss, break-even logic, and capital-based position sizing.
Visualization: Custom candle coloring and optional overlay for better clarity.
Default Properties (Strategy Settings)
Initial Capital: 10,000 USD
Position Size: 100% of equity per trade (backtest default)
Commission: 0.1%
Slippage: 1
Pyramiding: 0 (only one position at a time)
Note: The default of 100% equity per trade is used for testing purposes only and would not be sustainable in real trading. A typical allocation in practice would be between 1โ5% of account equity per trade, sometimes up to 10%.
Backtesting & Performance
Backtests on XPTUSD over 2.5 years with the default settings produced:
129 trades
73.64% win rate
Profit factor: 2.6
Maximum drawdown: 18.2%
These results show how the confluence of supply/demand, liquidity, and RSI filters can produce robust setups. However, past performance does not guarantee future results. While the trade count (129) is sufficient for statistical analysis, results may vary across markets and timeframes.
Risk Management
Three configurable take-profit levels with percentage allocation.
Initial stop-loss based on user-defined percentage.
Dynamic stop-loss that adjusts with market movement.
Break-even logic that shifts stops to entry after predefined gains.
Position sizing based on risk percentage of equity.
This framework allows both conservative and aggressive configurations, depending on user preference.
Limitations & Market Conditions
Works best in volatile and liquid markets such as crypto, metals, indices, and FX.
May produce false signals in low-volume or sideways environments.
Unexpected news or macro events can override technical conditions.
Default position sizing of 100% equity is highly aggressive and should be reduced before any practical use.
Usage Guide
Add โQuantura โ Quantified Price Action Strategyโ to your chart.
Select Supply & Demand, Liquidity, RSI, EMA, and FVG settings according to your market and timeframe.
Configure risk management: take-profits, stop-loss, and risk-per-trade percentage.
Use the Strategy Tester to analyze statistics, equity curve, and performance under different conditions.
Optimize parameters before applying the strategy to different markets.
Author & Access
Developed 100% by Quantura. Published as an Invite-Only script. Access is available upon request via the Authorโs Instructions field.
Important
This description complies with TradingViewโs publishing rules. It clarifies originality, explains the underlying logic, discloses default properties, and presents backtest results with realistic disclaimers.
Supertrend Strategy with ATR TP and SLSupertrend Strategy with ATR TP and SL
Overview
The Supertrend strategy is a trend-following trading system that utilizes the Average True Range (ATR) to determine the market's volatility and to set dynamic support and resistance levels. This strategy employs the Supertrend indicator to identify entry and exit points for trades, specifically focusing on long and short positions in the market.
Key Components
Inputs
ATR Period: This defines the lookback period for calculating the ATR, which helps in understanding market volatility. The default value is set to 10.
Supertrend Multiplier: This multiplier adjusts the sensitivity of the Supertrend indicator. A value of 3 is used, affecting the upper and lower bands of the Supertrend calculation.
TP (Take Profit) ATR Multiplier: This multiplier is used to calculate the take profit level based on the ATR (default value is 3).
SL (Stop Loss) ATR Multiplier: This multiplier dictates the stop loss distance from the entry point concerning the ATR, set to a value of 1.5.
Number of Bars to Use for Backtest: This setting determines how many bars are analyzed during testing, set to a default of 240.
Trading Mode: Options are provided to choose whether to take only long positions or only short positions.
ATR Calculation
The ATR is computed using a specified period, allowing traders to gauge market volatility effectively. This is crucial for setting appropriate stop loss and take profit levels.
Supertrend Calculation
The Supertrend indicator is calculated using the ATR and the multiplier to derive upper and lower bands. The current market price is compared against these bands to determine the trend direction.
Trade Signals
Buy Signal: Generated when the price closes above the Supertrend line, indicating a potential upward trend.
Sell Signal: Generated when the price closes below the Supertrend line, indicating a potential downward trend.
Entry and Exit Strategies
When a buy signal is triggered, the strategy will enter a long position while setting the take profit and stop loss based on the ATR values.
Conversely, if a sell signal occurs, a short position is opened with respective take profit and stop loss levels.
Alert Conditions
Alerts are set up for both buy and sell signals, allowing users to be notified when trade opportunities arise.
Visualization
The Supertrend line is plotted on the chart, along with take profit and stop loss levels for each trade. Labels indicate entry points to facilitate easy tracking of trades.
Conclusion
This Supertrend strategy is designed to simplify trading decisions by automating the entry and exit points based on well-defined market conditions. By utilizing the ATR for dynamic risk management, traders can adapt their approach according to market volatility. This strategy is suitable for many trading styles and can be backtested to assess its performance across different market conditions.
Usage
To use this strategy, simply apply the script in TradingView and adjust the input parameters based on your trading preferences. The strategy can be modified further to enhance its performance according to specific market scenarios.
SY_Quant_AI_YJโ
Improved and Compliant Description (for SY_Quant_AI_YJ)
Strategy Name: SY_Quant_AI_YJ
Type: Visual Trend System + MACD Cycle Filter + Smart Alerts
Status: Invite-Only / Visualization & Alerts Only (No order execution)
๐ Overview:
SY_Quant_AI_YJ is a trend-following visual strategy and alert system designed to help traders detect directional bias, time entries with MACD cross logic, and receive structured JSON-format push alerts. It combines Supertrend, EMA/SMA structures, and MACD cycles to build a coherent and actionable trend view, enhanced by visual stop-loss guidance and profit-taking alerts.
๐ Core Logic:
This script integrates technical components into a multi-step trend confirmation framework:
Supertrend (ATR-based): Serves as the primary trend filter, reducing noise and false breakouts.
EMA-55, SMA-15, SMA-80: Help establish short- to mid-term trend structure.
MACD Cycle Crosses: Configurable for long, medium, or short cycles to adapt to different market phases.
Bar Coloring System: Highlights trend strength (e.g., green for strong bullish, red for bearish), assisting in quick decision-making.
Signal Confirmation: Entry signals (long/short) are confirmed by trend alignment, price structure, and MACD cycle phase.
โ๏ธ Default Settings:
Supertrend: ATR period 15, multiplier 3.1
MACD Mode: Selectable via dropdown (Long, Medium, Short Cycle)
Stop-Loss Logic: Automatically tied to Supertrend value at entry bar
Signal Filtering: Consecutive same-direction entries are blocked to avoid redundancy
No trading simulation: Entries and exits are visual only; alerts replace real trade execution
๐ Usage:
Long/Short signals are displayed using labelup / labeldown markers (โๅๅคโ / โๅ็ฉบโ)
JSON-format alerts are triggered for:
โ
Entry zones (including stop-loss and entry range)
โ
Profit-taking when MACD reverses and position is floating in profit
Stop-loss guide lines plotted dynamically during active positions
Suitable for use on 15-minute to 4-hour charts
โ ๏ธ Disclaimer:
This strategy does not simulate or execute trades. It is designed for monitoring and decision support only. All signals are informational and should be used alongside proper risk management and independent analysis. Past visual or alert performance does not guarantee future results.
๐ Access:
To gain access to this invite-only script, please send a private message or contact us via the designated link. Access is reviewed and granted manually per user request.
Market Open Impulse [LuciTech]Market Open Impulse Strategy
The Market Open Impulse Strategy is designed to capture significant price movements that occur at market open (2:30 PM UK time). This strategy identifies impulsive candles with high volatility and enters trades based on the direction and strength of the initial market reaction.
How It Works:
The strategy activates exclusively at 2:30 PM UK time during market open sessions. It uses ATR-based volatility filtering to identify impulsive candles that exceed a configurable multiplier (default 1.5x ATR). Long entries are triggered when an impulsive candle closes above its midpoint and above the opening price, while short entries occur when an impulsive candle closes below its midpoint and below the opening price.
Risk management is handled through precise stop loss placement at the opposite extreme of the impulse candle (high for short positions, low for long positions). Take profit levels are calculated using a configurable risk-reward ratio with a default setting of 3:1. Position sizing is automatically calculated based on the percentage risk per trade, and an optional breakeven feature can move the stop loss to the entry price at specified profit levels.
The strategy incorporates time-based filtering to ensure trades only occur during the specified market open window. Visual indicators highlight qualifying impulsive candles and plot all entry and exit levels for clear trade management. The system offers flexible risk management with customizable risk percentage, risk-reward ratios, and breakeven settings, along with multiple stop loss calculation methods including both ATR-based and candle-based options.
Key Parameters:
Market open timing is fully configurable through hour and minute settings for strategy activation. The impulse ATR multiple sets the minimum volatility threshold required for trade qualification, with visual highlighting available for qualifying setups. Risk management parameters include the percentage of account equity to risk per trade, target profit multiples relative to initial risk, and the profit level threshold for breakeven stop loss adjustment. Users can choose between ATR-based or candle-based stop loss calculation methods and adjust technical parameters for volatility calculation including ATR length and smoothing methods.
Applications:
This strategy is particularly effective for trading market open volatility and momentum, capturing institutional order flow during key timing windows, executing short-term swing trades on significant price impulses, and trading markets with predictable opening patterns and consistent volatility characteristics.
Backtest [OptAlgo]This backtest script is designed to convert ideas or indicators into backtest results. The script creates buy/sell signals by comparing price sources against fixed values or other imported plots using many comparison methods. It has many features including multiple exit systems: TP/SL, custom plot-based stops and more. It supports full trading automation through webhook alerts with live signal processing.
๐ข Signal Creation System
โโโโโ Values Group : Compare price sources against fixed numerical values
โโโโโ Plots Group : Compare two different price sources/indicators against each other
โโโโโ Flexible Comparisons : 15+ comparison methods (equal, crossover, rising...)
โโโโโ Signal Types : Long, Short, Close All, Block signals, and combination signals
โโโโโ Merge Rules : Minimum condition requirements for signal activation
๐ Advanced Signal Logic
โโโโโ Counter Signals : Choose between reversing positions or closing them
โโโโโ Signal Inversion : Flip all buy/sell signals with one toggle
โโโโโ External Signal Import : Import coded signals (1=Long, -1=Short, 0=Close)
โโโโโ Day Blocker : Enable/disable trading on specific weekdays
โโโโโ Session Control : Limit trading to specific market sessions
โ๏ธ Strategy Settings
โโโโโ Position Sides : All Ways, Long Only, or Short Only modes
โโโโโ Signal Control : Individual enable/disable for long and short signals
โโโโโ Counter Signal Mode : Reverse Open Position vs Close Open Position
โโโโโ Signal Reversal : Global signal inversion capability
๐ฐ Risk Management (Limiter Settings)
โโโโโ Leverage Control : Leverage with liquidation warnings
โโโโโ Drawdown Limit : Auto-halt strategy at specified drawdown percentage
โโโโโ Tradable Ratio : Use portion of available balance (0.01-1.0)
โโโโโ Contract Limit : Cap maximum contract size regardless of balance
๐ฏ TP/SL System
โโโโโ Fixed TP/SL : Set percentage-based take profit and stop loss
โโโโโ Custom Plot Stops : Use any indicator/plot as dynamic stop loss
โโโโโ ATR-Based Exits : Volatility-adjusted TP/SL using Average True Range
โโโโโ Realistic Protection : Prevents unrealistic TP/SL prices in live trading
โโโโโ Stop Modes : Instant (Sudden) vs Candle Close execution
โโโโโ ATR Stop Loss : Override fixed SL with volatility-based calculations
โโโโโ ATR Take Profit : Dynamic TP based on market volatility
โโโโโ Trailing Options : Safe, Normal, or Aggressive trailing methods
โโโโโ Calculation Modes : Normal, Volume-weighted, or Limited (with max %) options
โโโโโ Volume Integration : ATR levels adjust based on volume influx
๐ค Automation & Alerts
โโโโโ Webhook Integration : Send JSON alerts for automated execution
โโโโโ Live Signals : Real-time signal processing (every tick vs bar close)
โโโโโ Strategy Key : Unique identifier for automated systems
โโโโโ Early Entry : Send alerts X seconds before candle close
โโโโโ Fast Execution : Prevent signal lag in automated trading
๐ Development Tools
โโโโโ Alert Plotting : Visualize signals directly on chart (disable for live alerts)
โโโโโ Professional Mode : Remove UI controls for faster calculation
โโโโโ Debug : Metrics are plotted in data window.
๐ Key Advantages
โโโโโ Multi-Condition Logic : Combine multiple indicators with flexible rules
โโโโโ Risk-First Design : Built-in drawdown and leverage protection
โโโโโ Automation Ready : Full webhook and alert system integration
โ ๏ธ Important Warnings
โโโโโ High leverage combined with high SL may adjust to liquidation price
โโโโโ Use consistent leverage across all strategies on same trading isolated margin pair
โโโโโ Live signals require "Calculate on every tick" enabled in settings
โโโโโ Disable alert plotting when creating actual alerts to prevent latency
Pro Reversal Strategie - FinalCore Functionality Description
The "Pro Reversal Strategy" script is a comprehensive and highly customizable trading system for TradingView. Its core idea is based on a mean-reversion strategy, which aims to capitalize on price extremes where the price is likely to revert to its statistical mean. This script ist full AI generated. There ist no support and no financial advice.
To identify entry points, the script combines classic indicators like the RSI (to detect overbought and oversold conditions) and Bollinger Bands (to measure volatility extremes).
However, the script's strength lies in its confluence logic: a simple RSI or Bollinger Band signal is not enough to trigger a trade. Instead, a series of filters are applied to enhance the quality of the trade signals. These include:
Trend Filter: Trades are only taken in the direction of the higher-level trend (defined by a 200-period Moving Average).
Volatility and Volume Filter: ADX and volume analysis ensure that the market has sufficient momentum for a move.
Market Structure Analysis: Concepts like Fair Value Gaps (FVG), liquidity zones, and the Volume Profile (VRVP/POC) are used to place trades in high-probability zones.
Momentum Filter: Special "Vector Candles" confirm the strength of buyers or sellers at the moment of the signal.
Furthermore, the script offers advanced features for risk and trade management, including automatic position sizing based on a percentage risk and dynamic exit strategies like a breakeven stop and a trailing stop-loss (Chandelier ATR).
A detailed info panel visualizes all key metrics in real-time directly on the chart. Thanks to its versatile configuration options, the script can be adapted for various trading styles, including swing trading, day trading, and scalping.
Core Strategies & Filters (English)
Here is a breakdown of the specific strategies and confirmation filters used within the script:
RSI Mean Reversion: Uses the Relative Strength Index (RSI) to identify overbought (> rsiSellShort) and oversold (< rsiBuyLong) conditions, which serve as the primary trigger for a potential price reversal.
Bollinger Bands (BB) Volatility Filter: Trades are confirmed when the price touches or exceeds the outer Bollinger Bands. This indicates a move to a statistical extreme in terms of volatility, reinforcing the reversal thesis.
Trend Filter (200 SMA): Ensures that long trades are only considered in a general uptrend (price > SMA 200) and short trades in a downtrend (price < SMA 200), preventing trades against the dominant market direction.
ADX Trend Strength Filter: Utilizes the Average Directional Index (ADX) to confirm that a market is trending with sufficient strength. Trades are filtered out during weak or non-trending phases (adx < adxThreshold).
Volume Profile (VRVP / POC): Analyzes volume at specific price levels to identify high-volume nodes (Point of Control - POC). This acts as a filter to avoid entering trades directly into a zone of strong support or resistance.
Vector Candle Filter: Identifies "Vector Candles" โ large, high-volume candles that close strongly near their high (bullish) or low (bearish). This custom filter confirms strong conviction behind the initial reversal signal.
Market Structure (FVG & Liquidity): Incorporates advanced price action concepts. It looks for entries after a liquidity zone above a previous high/low has been tapped (Liquidity Grab) or when price enters a Fair Value Gap (FVG), adding a layer of institutional trading logic.
Chart Pattern Recognition: Optionally identifies classic chart patterns like "W-Patterns" (Double Bottom), "M-Patterns" (Double Top), and Ascending Triangles to provide additional visual confirmation for traders.
Position Sizing (Risk %): Automatically calculates the trade size based on a user-defined percentage of the total equity (riskPct) and the distance to the stop-loss, ensuring consistent risk management for every trade.
Dynamic Exit Management: Implements advanced exit strategies beyond a fixed take-profit. This includes moving the stop-loss to Breakeven after a certain risk-to-reward ratio is met and using a Trailing Stop-Loss (e.g., Chandelier ATR) to lock in profits as a trade develops.
Breakouts With DXY Filter Strategy [LuciTech]This advanced breakout strategy combines pivot-based breakout detection with an innovative DXY (US Dollar Index) inverse correlation filter to enhance trade selection quality. The strategy identifies breakouts from recent pivot highs and lows while using DXY movements as a confirmation filter, based on the principle that USD strength/weakness often inversely correlates with other asset movements.
Key Features
Core Breakout Logic
- Pivot-Based Detection: Identifies breakouts above recent pivot highs (bullish) and below recent pivot lows (bearish)
- Customizable Lookback: Adjustable pivot length for different market conditions
- Visual Breakout Lines: Optional display of breakout levels with customizable colors
DXY Inverse Correlation Filter
- Smart USD Filter: Uses DXY movements to confirm breakout signals
- Inverse Logic: Long signals require DXY bearishness, short signals require DXY bullishness
- Threshold Control: Minimum DXY movement percentage required for signal confirmation
- Real-time DXY Data: Pulls live DXY data for accurate correlation analysis
Moving Average Filter
- Multiple MA Types: Support for SMA, EMA, WMA, VWMA, and HMA
- Trend Confirmation: Only takes trades in the direction of the selected moving average
- Customizable Parameters: Adjustable length and source for the moving average
Advanced Risk Management
- Multiple Stop Loss Types:
- ATR-based stops with customizable multiplier
- Candle-based stops using previous candle levels
- Fixed point-based stops
- Risk-Reward Optimization: Configurable risk-reward ratios (1:1 to 1:10)
- Breakeven Function: Automatic stop loss adjustment to breakeven after specified R-multiple
- Position Sizing: Percentage-based risk management with automatic position calculation
Time-Based Trading
- Session Filter: Trade only during specified time windows
- London Time Zone: Uses Europe/London timezone for consistency
- Visual Session Highlighting: Optional background fill for active trading hours
Alert System
- Webhook Integration: JSON-formatted alerts for automated trading
- Telegram Support: Pre-formatted messages for Telegram bot integration
- Multiple Formats: Standard, Telegram, and Concise Telegram alert options
- Real-time Notifications: Instant alerts on breakout signals
How It Works
1. Breakout Detection: The script continuously monitors for closes above recent pivot highs or below recent pivot lows
2. DXY Confirmation: When a breakout occurs, the script checks if DXY is moving in the opposite direction with sufficient momentum
3. MA Filter: If enabled, ensures the breakout aligns with the overall trend direction
4. Time Filter: Validates that the signal occurs within the specified trading hours
5. Risk Calculation: Automatically calculates position size based on the defined risk percentage and stop loss distance
6. Trade Execution: Places trades with predetermined stop loss and take profit levels
Unique Advantages
- Multi-Timeframe Approach: Combines asset-specific breakouts with broader USD market sentiment
- False Breakout Reduction: DXY filter helps eliminate breakouts that lack fundamental backing
- Comprehensive Risk Management: Multiple stop loss methods and automatic position sizing
- High Customization: Extensive parameters for different trading styles and market conditions
- Professional Alert System: Ready for automated trading integration
MVO - MA Signal StrategyStrategy Description: MA Signal Strategy with Heikin Ashi, Break-even and Trailing Stop
โธป
๐ Core Concept
This strategy enters long or short trades based on Heikin Ashi candles crossing above or below a moving average (MA), with optional confirmation from the Money Flow Index (MFI). It includes:
โข Dynamic stop loss and take profit levels based on ATR
โข Optional break-even stop adjustment
โข Optional trailing stop activation after breakeven
โข Full visual feedback for trades and zones
โธป
โ๏ธ Indicators Used
โข Heikin Ashi Candles: Smooth price action to reduce noise.
โข Simple Moving Average (MA): Determines trend direction.
โข Average True Range (ATR): Sets volatility-based SL/TP.
โข Money Flow Index (MFI): Optional momentum filter for entries.
โธป
๐ Trade Entry Logic
โ
Long Entry:
Triggered if:
โข Heikin Ashi close crosses above the MA
or
โข MFI is below 20 and Heikin Ashi close is above the MA
โ Short Entry:
Triggered if:
โข Heikin Ashi close crosses below the MA
or
โข MFI is above 90 and Heikin Ashi close is below the MA
โธป
๐ Stop Loss & Take Profit
โข SL is set using riskMult * ATR
โข TP is set using rewardMult * ATR
Example:
โข If ATR = 10, riskMult = 1, rewardMult = 5
โ SL = 10 points, TP = 50 points from entry
โธป
โ๏ธ Break-even Logic (Optional)
โข If price moves in your favor by breakevenTicks * ATR, SL is moved to entry price.
โข Enabled via checkbox Enable Break Even.
โธป
๐ Trailing Stop Logic (Optional)
โข Once break-even is hit, a trailing stop starts moving behind price by trailATRmult * ATR.
โข Trailing stop only activates after break-even is reached.
โข Enabled via checkbox Enable Trailing Stop.
๐ Visual Elements
โข Heikin Ashi candles are drawn on the main chart.
โข Trade zones are shaded between SL and TP during open trades.
โข Lines mark Entry, SL, TP, Break-even trigger.
โข Markers show entries and exits:
โข Green/red triangles = long/short entries
โข โ
= Take profit hit
โข โ = Stop loss hit
โ
Best Use Case
โข Trending markets with strong pullbacks
โข Works on multiple timeframes
โข Better suited for assets with consistent volatility (ATR behavior)